home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2666 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: comma.rhein.de!yaps!arno
  2. From: arno@yaps.rhein.de (Arno Eigenwillig)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Problem executing programs from WB
  5. Message-ID: <2sP1y*kJf@yaps.rhein.de>
  6. Date: Sat, 03 Feb 1996 14:49:38 +0100
  7. References: <4etu0m$iq0@mn5.swip.net>
  8. Organization: Yet Another Private Site in Meckenheim, Germany
  9. X-Copyright: This article may not be distributed on a CD-ROM
  10.  or in printed form without prior written consent of the author.
  11. X-Newsreader: Arn V 1.04
  12.  
  13. In article <4etu0m$iq0@mn5.swip.net>, Ola Lindgren writes:
  14.  
  15. > Starting the program from the Workbench is ok, 
  16. > but when I exit it I get the message "Software Failure error #87000004". 
  17. > This only happens when I start the program from the WB with my own icon. 
  18.  
  19. You do not properly fetch and reply the WB Startup message. In your
  20. startup code, detect whether your program has been launched from WB
  21. (pr_CLI == 0). If yes, wait for a message to be sent to your pr_Msg-
  22. Port. GetMsg() it and save its address. Immediately before doing the
  23. final RTS, Forbid() and ReplyMsg() it.
  24.  
  25. Details and reasons are given in the RKM Libraries, p.364ff.
  26.  
  27. -- __
  28. __/// Arno Eigenwillig /\ <arno@yaps.rhein.de> \/ PGP key available.
  29. \XX/   V+49-2225-5870  /\ <Arnooo @ #amigager> \/ MIME 8bit welcome.
  30.